﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package net.wooga.pets.controllers.payment {
    import net.wooga.pets.events.*;
    import net.wooga.pets.models.*;
    import net.wooga.pets.constants.*;
    import org.robotlegs.mvcs.*;

    public class BuyRoomslotCommand extends Command {

        public var paymentModel:PaymentModel;

        override public function execute():void{
            var _local1:Object = this.paymentModel.getData(ProtocolConstants.BUY_ROOM_SLOT)[0];
            var _local2:Object = {product_id:_local1.product_id, product_type:ProtocolConstants.BUY_ROOM_SLOT, amount:_local1.amount, icon:_local1.icon};
            var _local3:InfoEvent = new InfoEvent(EventConstants.START_PAYMENT, null, _local2);
            dispatch(_local3);
        }

    }
}//package net.wooga.pets.controllers.payment 
